import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—07—10
 * Time: 13:56
 */
public class Demo01 {
    public static void main(String[] args) {
        Queue<Integer> myQueue = new LinkedList<>();
        //MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(3);
        myQueue.offer(5);
        System.out.println(myQueue.peek());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());

        Deque<Integer> myQueue2 = new LinkedList<>();
    }
}
